package cn.prototype.csl;

/**
 * Created by siyuzhiyue on 2017/6/13.
 */
public class NewShape implements Cloneable{
    Shape shape;

    public Shape getShape() {
        return shape;
    }

    public void setShape(Shape shape) {
        this.shape = shape;
    }

    public Object clone(){
        NewShape clone = null;

        try {
            clone = (NewShape)super.clone();
            clone.shape = (Shape) this.shape.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }

        return clone;
    }
}
